<div class="users view">
	<h2>Liste des etudiants</h2>
	<?php
	if(!empty($students))
	{
	?>
	<table cellpadding="0" colspan="0" width="98%">
		<tr>
			<td>Nom</td>
			<td>Prenom</td>
			<td>Email</td>
			<td>Telephone</td>
			<td>Afficher CVs</td>
		</tr>
		<tr>
			<td colspan="5" style="border:1px solid black;"></td>
		</tr>
		<?php 
		foreach($students as $student)
		{
		?>
		<tr>
		<?php //var_dump($student); ?>
			<td><?php echo $student['User']['lastname']; ?></td>
			<td><?php echo $student['User']['firstname']; ?></td>
			<td><a target="_blank" href="mailto:<?php echo $student['User']['email']; ?>"><?php echo $student['User']['email']; ?></a></td>
			<td><?php echo $student['User']['phone']; ?></td>
			<td><?php echo $this->Html->link(__('Afficher', true), array('controller' => 'cvs', 'action' => 'user', $student['User']['id'])); ?></td>
		</tr>
		<tr>
			<td colspan="5" style="border-top:1px solid black;"></td>
		</tr>
		<?php 
		}
		?>
	</table>
	<?php 
	}
	else
	{
	?>
	<p>Vous n'avez pas d'&eacute;l&egrave;ve.</p>
	<?php
	}
	?>	
</div>
